package com.yifeixi.validation.entity;

import com.yifeixi.validation.constraint.ValidPassengerCount;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 车
 *
 * @author YiFeiXi
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ValidPassengerCount
public class Car {

  /**
   * 座位数
   */
  private Integer seatCount;
  /**
   * 乘客
   */
  private List<User> passengers;
}
